using TMPro;
using UnityEngine;

public class UiStatTooltip : UiTooltip
{
    private TextMeshProUGUI descriptionText;

    private void Awake()
    {
        descriptionText = GetComponentInChildren<TextMeshProUGUI>();
    }

    public void Show(string description)
    {
        descriptionText.text = description;
        AdjustPosition();
        gameObject.SetActive(true);
    }

    public void Hide()
    {
        descriptionText.text = string.Empty;
        gameObject.SetActive(false);
    }
}
